home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / MW MPW Binaries 1.1.1a2 / mwcPPC / MWCIncludes / PLStringFuncs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-31  |  1.4 KB  |  49 lines  |  [TEXT/MMCC]

  1. /*
  2.     PLStringFuncs.h -- C string conversion functions for pascal strings.
  3.         
  4.     Copyright Apple Computer,Inc.  1989-1991, 1993.
  5.     All rights reserved
  6.  
  7.     This file is used in these builds: ROM System
  8.  
  9.     Change History (most recent first):
  10.  
  11.          <3>      8/8/91    JL        Update copyright
  12.          <2>     6/17/91    JL        Checked in MPW 3.2ƒ version.  Changed PLstrchr and PLstrstr 2nd
  13.                                     param type from char to short.
  14.  
  15.     To Do:
  16. */
  17.  
  18. #ifndef __PLSTRINGFUNCS__
  19. #define __PLSTRINGFUNCS__
  20.  
  21. #ifndef    __TYPES__
  22. #include <Types.h>
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. pascal short        PLstrcmp(ConstStr255Param str1, ConstStr255Param str2);
  30. pascal short         PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, short num);
  31. pascal StringPtr     PLstrcpy(StringPtr str1, ConstStr255Param str2);
  32. pascal StringPtr     PLstrncpy(StringPtr str1, ConstStr255Param str2, short num);
  33. pascal StringPtr    PLstrcat(StringPtr str1, ConstStr255Param str2);
  34. pascal StringPtr     PLstrncat(StringPtr str1, ConstStr255Param str2, short num);
  35. pascal Ptr             PLstrchr(ConstStr255Param str1, short ch1);
  36. pascal Ptr             PLstrrchr(ConstStr255Param str1, short ch1);
  37. pascal Ptr             PLstrpbrk(ConstStr255Param str1, ConstStr255Param str2);
  38. pascal short         PLstrspn(ConstStr255Param str1, ConstStr255Param str2);
  39. pascal Ptr             PLstrstr(ConstStr255Param str1, ConstStr255Param str2);
  40. pascal short         PLstrlen(ConstStr255Param str);
  41. pascal short        PLpos(ConstStr255Param str1, ConstStr255Param str2);
  42.  
  43.  
  44. #ifdef __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif
  49.